package com.etc.delivery.service.warehouse;

import com.etc.delivery.entity.MailType;
import com.etc.delivery.entity.Warehouse;
import com.etc.delivery.entity.Waybill;

import java.util.List;

public interface IWarehouseService {

    public List<Warehouse> login(Warehouse warehouse);


    public List<Waybill> queryAllByAjax(int waybillNo
            , String mailType
            , String senderName, String senderPhone,
                                        String senderAddress, String recipientName,
                                        String recipientPhone, String recipientAddress,
                                        String mailCost, int status, Integer warehouse_id
    );

    public boolean addWaybil(int waybillNo);

    public boolean deleteWaybill(int waybill_no);

    public boolean updateByStatus(int waybill_no);

    public List<Waybill> queryAllBywaybill_no(int waybill_no, int warehouse_id);

    public boolean updateWaybill(int mail_type, String sender_name, String sender_phone, String sender_address, String recipient_name, String recipient_phone, String recipient_address, int mail_cost, int waybill_no);

    public List<MailType> queryMailName();
}